package com.me.blood.frag;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.me.blood.databinding.AdTipBinding;

public class TipDlg extends FullScreenDlg {

    AdTipBinding binding;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        binding = AdTipBinding.inflate(inflater, container, false);
        binding.close.setOnClickListener(view -> dismiss());
        binding.btn.setOnClickListener(view -> dismiss(true, null));
        binding.getRoot().setOnClickListener(v -> dismiss());

        return binding.getRoot();
    }
}
